<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
    function Verify( ){
        var Tel=document.TelForm.TelNo.value;
        if ((Tel.length==8) | (Tel.length==11)){
            if (parseInt(Tel)!=0){
                NewWin=window.open("","","width=200,height=200");
                NewWin.document.open("text/html");
                NewWin.document.write("<H3>号码已经成功提交！</H3>"); NewWin.document.close( );
            }
            else{
                alert("号码输入不正确！");
                return false;
            }
        }
        else{
            alert("号码输入不正确！");
            return false;
        }
    } 
    </script>
</head>
<body>
    请输入您的电话号码：<br>
    <form name="TelForm" onSubmit="Verify( )">
    <input type="text" name="TelNo" value=""><br>
    <input type="submit" value="提交号码" width=100>
    <input type="reset" value="重置号码" width=100></form>
</body>
</html>